package com.module03.Q4_StudentManager;

//遍历父类学生list的内容
public class Q4_StudenForEach extends Q4_StudentLIst{

    public void forEach(){
        System.out.println("遍历为：");
        for (Q4_Student i:
                list) {
            System.out.println(i.toString());
        }
    }
}
